﻿<%@ Page Title="Competition" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="competition.aspx.cs" Inherits="competition" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript" src="scripts/jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="scripts/jquery-scripts.js"></script>
    <script type="text/javascript">
    function ClientValidate(source, clientside_arguments) {
        if ($('#<%=chkTC.ClientID %>').is(":checked")) {
            $('#tcDiv').removeClass("required");
            clientside_arguments.IsValid = true;
        } else {
            // add class to change colour
            $('#tcDiv').addClass("required").get(0).focus();
            clientside_arguments.IsValid = false;
        }
    }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="containerNarrow" style="background-image:url(img/backgrounds/jumper_bg.jpg)">
    <div id="copyContent">
    <h2>Competition - Win £1000 Chimes gift card!</h2>
    <asp:Panel Visible="true" runat="server" ID="pnlEntry">
    <div id="details-01">
			
			<p class="intro">The Chimes is making Christmas easy with a great giveaway! Simply fill out the form below and you could be in with a chance of winning <strong>£1000 Chimes gift card</strong>.  You could visit The Chimes and buy all your Christmas presents in one enormous shopping spree. Good luck!</p>

			<div class="text-input">
				<label for="gir_firstname">Firstname *<asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtFirstName" ErrorMessage="Required!" runat="server" EnableClientScript="true" SetFocusOnError="true"/></label>
				
				<asp:TextBox id="txtFirstname" runat="server" CssClass="text" />
			</div>
			
			<div class="text-input">
				<label for="txtSurname">Surname *<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtSurname" ErrorMessage="Required!" runat="server" EnableClientScript="true" SetFocusOnError="true"/></label>
				<asp:TextBox id="txtSurname" runat="server" CssClass="text" />
				
            </div>
			
			<div class="text-input">
				<label for="txtEmail">Email *
				<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtEmail" ErrorMessage="Required!" runat="server" EnableClientScript="true" SetFocusOnError="true"/>
				<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtEmail" ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z+])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" runat="server" EnableClientScript="true" ErrorMessage="check email" SetFocusOnError="true"/>
				</label>
				<asp:TextBox id="txtEmail" runat="server" CssClass="text" />
			</div>
			
			<div class="text-input">
				<label for="txtAddress1">Address</label>
				<asp:TextBox id="txtAddress1" runat="server" CssClass="text" />
    		</div>
			
			<div class="text-input">
				<label for="txtAddress2"></label>
				<asp:TextBox id="txtAddress2" runat="server" CssClass="text" />
			</div>
			
			<div class="text-input">
				<label for="txtPostCode">Postcode</label>
				<asp:TextBox id="txtPostCode" runat="server" CssClass="text shortvalue" />
            </div>
			
			<div class="divider"></div>
			
			<div id="tcDiv">
			
				<fieldset>
					<label for="chkTC">
					<asp:CheckBox ID="chkTC" runat="server" />
				
					 I have read and agree to the <a href="#terms" id="terms-toggle">Terms &amp; Conditions</a>
					 <asp:CustomValidator
					    ID="CustomValidator1"
					    runat="server"
					    ErrorMessage="Please agree."
					    onservervalidate="CustomValidator1_ServerValidate"
					    ClientValidationFunction="ClientValidate"
                                        EnableClientScript="true"
					    /></label>
					 
					 
					
            </fieldset>
			</div>
			
			<div id="terms">
				<h4>Terms &amp; Conditions</h4>
				<ol>
				    <li>Closing date for the free prize draw is 5pm on 24th December 2008.</li>
				    <li>The winner will be the first entry drawn at random after 6pm on 24th December 2008.</li>
				    <li>The winner will be notified within 21 days of the draw date.</li>
				    <li>Entry is only available to persons over 18 years of age who have a residential address in the UK. 5. The promoter's decision is final and no correspondence will be entered into.</li>
				    <li>The prize is as stated and no cash alternative is available.</li>
				    <li>Photocopied, defaced or amended entry forms will not be accepted.</li>
				    <li>The winner may be required to take part in post competition publicity.</li>
				    <li>Only one entry per person. No third party or bulk entries.</li>
				    <li>Participants are required to complete and sign the entry form – this will be deemed acceptance of these terms and conditions.</li>
				    <li>CSC employees, their agents, friends and family or anyone connected with The Chimes Shopping Centre are not eligible to enter.</li>
				    <li>The Chimes reserves the right to hold or cancel the prize in the event of non-compliance with these rules.</li>
				    <li>The Promoter cannot accept any liability in respect of any consequences of this promotion.</li>
				    <li>No purchase necessary.</li>
				    <li>Postal entries should be sent to The Marketing Department, The Chimes Shopping Centre , Centre  Management, PO Box 368, High Street, Uxbridge UB8 1GE.</li>
				    <li>Proof of posting is not proof of receipt. No responsibility can be accepted for entries incomplete, delayed, damaged, wrongly delivered or not received for whatever reason.</li>
				    <li>The winner’s name and county will be available 28 days after the closing date. Send a sae to The Marketing Department, The Chimes Shopping Centre , Centre Management, PO Box 368, High Street, Uxbridge UB8 1GE. Promoter: The Chimes Merchants Association Ltd, Uxbridge, UB8 1GE.</li>				
				</ol>

				<p>
				<!--Promoter: The Fort Shopping Park, 20 Fort Parkway, Birmingham, B24 9FD.-->
				</p>
			</div>
			
			<div>
				<fieldset>
					<label for="chkOptout">
					<asp:CheckBox ID="chkOptout" runat="server" />Tick the box if you do <strong>not</strong> wish to receive further information from The Chimes.</label>
                    
				</fieldset>
			</div>
			
			<div class="clearfix">
			
                <asp:Button ID="btnSubmit" CssClass="submit" runat="server" Text="Submit" />
			</div>
			
			</div><!-- details-01 -->
		
		<a name="details-02"></a>
		<div id="details-02"></div>
    
 

</asp:Panel>
<asp:Panel Visible="false" runat="server" ID="pnlThankyou">
<p>Good Luck!</p>
<p>Thank you for entering.</p>
</asp:Panel>
   </div>
</div>
</asp:Content>

